
var g1 = {
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b}: {c} ({d}%)'
    },
   
    series: [
        {
            name: '安全检查类别',
            type: 'pie',
            radius: ['50%', '85%'],
            center:['50%','50%'],
            avoidLabelOverlap: false,
            label: {
                show: false,
                position: 'center'
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: '14',
                    fontWeight: 'bold'
                }
            },
            labelLine: {
                show: false
            },
            data: [
                {value: 234, name: '低风险',itemStyle:{color:'#5181ff'}},
                {value: 234, name: '一般风险',itemStyle:{color:'#fed100'}},
                {value: 234, name: '较大风险',itemStyle:{color:'#ff9c00'}},
                {value: 234, name: '重大风险',itemStyle:{color:'#f24b7a'}}
            ]
        }
    ]
};
var chart = echarts.init(document.querySelector('.riskGradeType'));
chart.setOption(g1);